package com.per.mybootall.test.testReflect;

import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 *
 * @author: yyy
 * Date: 2021/11/17
 * Time: 10:33
 * Description:测试反射替代switch
 */
@Component
@EnableScheduling
public class testReflect {

    @Resource
    Doing doing;

    @Scheduled(cron = "0/50 * * * * ?")
    public void soutTest() {
        System.out.println("测试反射替代switch---->>>>>");
        //doing.swtitchTest("aliPay");
        doing.reflect("bankPay","10");
    }
}
